<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Modeling</title>
<?php echo importCSS("template.css|style.css|work-single.css|font.css");?>
<?php echo importJS("jquery.min.js");?>
</head>
<body>
<?php echo L('LANG_FONT');?>
<script> var THEME_ROOT = '__ROOT__/themes/' ; </script>
<div class="header clearfix">
	<div class="center">
    	<a href="<?php echo U('/index');?>"><div class="logo">
        	<img src="__ROOT__/themes/images/logo.png" />
        </div></a>
        <div class="menu">
        	<a href="<?php echo U('/work/index');?>" <?php echo ($nav_menu=="work"?" class='now'":"");?>><div><?php echo L('HEADER_WORK');?></div></a> <!-- class="now"-->
            <a href="<?php echo U('/contractor/index');?>" <?php echo ($nav_menu=="contractor"?" class='now'":"");?>><div><?php echo L('HEADER_CONTRACTOR');?></div></a>
            <a href="<?php echo U('/space/index');?>" <?php echo ($nav_menu=="space"?" class='now'":"");?>><div><?php echo L('HEADER_MY_SPACE');?></div></a>
        </div>
        <div class="search">
        	<div><img src="__ROOT__/themes/images/search.png" /></div>
        	<form method="get" action="<?php echo U('/work/index');?>" >
            <input type="text" id="search" name="name" value="<?php echo L('HEADER_SEARCH');?>" onfocus="if(value=='<?php echo L('HEADER_SEARCH');?>') {value=''} setStyleOne(this.id)" onblur="if (value=='') { value='<?php echo L('HEADER_SEARCH');?>' } setStyleTwo(this.id)"/>
            </form>
        </div>
        <?php if ($_cUser) { ?>
        <div class="signafter">
        	<a href="<?php echo U('/signout');?>"><div  class="outbutton"><?php echo L('HEADER_SIGN_OUT');?></div></a>
        	<a href="<?php echo U('/space/index');?>"><div class="word"><?php echo ($_cUser["username"]); ?></div></a>
        </div>
        <?php } else { ?>
        <div class="sign">
        	<a href="<?php echo U('/join');?>"><div><?php echo L('HEADER_JOIN');?></div></a>
            <a href="<?php echo U('/signin');?>"><div><?php echo L('HEADER_SIGN_IN');?></div></a>
        </div>
        <?php } ?>
    </div>
</div>
<div class="clear"></div>

<div class="main center clearfix">
    <div class="mbox">
    	<a href="<?php echo U('/work/view/'.$wid);?>"><div class="button backbutton"><?php echo L('WORK_BACK');?></div></a>
        <div class="clear"></div><!--
  		<div class="mend">
        	<div class="typebox">
            	<div class="inputimg"><img src="__ROOT__/themes/images/client-type.png" /></div>
                <div class="inputname">MESSAGE TYPE</div>
                <div id="dropDownList1" class="dropDownList dropdown">
  					<select class="hide" name="birthday">
                    	<option>Please select</option>
   						<option>Advice</option>
   						<option>Technical Advice</option>
   						<option>Feature Suggestions</option>
                    	<option>Prototype Advice</option>
                        <option>Other</option>
  					</select>
  					<span class="">Please select</span>
            		<ul class="">
            		</ul>
        		</div>
        	</div>
            <div class="clear"></div>
            <textarea type="text" id="message" name="message" onfocus="setStyleOne(this.id)" onblur="setStyleTwo(this.id)"></textarea>
            <div class="clear"></div>
            <a href="#"><div class="button messagebutton">SEND</div></a>
            <div class="clear"></div>
        </div>-->
        <div class="messagetitle"><?php echo L('WORK_MESSAGES');?> (<?php echo msgcount($work['id']);?>)</div>
        <div class="clear"></div>
        <div class="mlist">
        	<?php if(is_array($message)): $i = 0; $__LIST__ = $message;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="messagesingle">
            	<div class="pic"><img src="<?php echo getAvatar($vo);?>" width=50/></div>
                <div class="wordbox">
                	<div class="name"><a href="<?php echo U('/contractor/view/'.$vo['uid']);?>"><?php echo ($vo["username"]); ?></a></div>
                	<div class="word"><?php echo (h($vo["content"])); ?></div>
                    <!--<div class="time"></div>-->
                </div>
                <div class="clear"></div>
            </div>
            <div class="clear"></div><?php endforeach; endif; else: echo "" ;endif; ?><!--
        	<div class="messagesingle">
            	<div class="pic"><img src="__ROOT__/themes/images/pimg.png" /></div>
                <div class="wordbox">
                	<div class="name"><a href="">David</a></div>
                	<div class="word">Sweet. I Love your style!I've done tons of fancy stylings to all sorts of data (code, tables, quotes, etc) to make sure things look super duper rad... none of that rad data is represented here in the photoshop comp though... cuz I do most design in the CODE PHASE! yep.Roon will be launching at Valio Con!</div>
                    <div class="time">14 minutes earlier</div>
                </div>
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
            <div class="messagesingle">
            	<div class="pic"><img src="__ROOT__/themes/images/pimg.png" /></div>
                <div class="wordbox">
                	<div class="name"><a href="">David</a></div>
                	<div class="word">Sweet.</div>
                    <div class="time">14 minutes earlier</div>
                </div>
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
            <div class="messagesingle">
            	<div class="pic"><img src="__ROOT__/themes/images/pimg.png" /></div>
                <div class="wordbox">
                	<div class="name"><a href="">David</a></div>
                	<div class="word">Sweet. I Love your style!</div>
                    <div class="time">14 minutes earlier</div>
                </div>
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
            -->
        </div>
    </div>

</div>

<div class="footer">

</div>
<?php echo importJS("downlist.js|input.js|signup.js");?>
</body>
</html>